package com.study.it.xw.dao;

import java.util.List;
import com.study.it.xw.entity.WeiBo;

public interface WeiBoDao {
    public List<WeiBo> selectAll();

    public void insertWeiBo(WeiBo wb);

    //根据id获取单条微博
    public WeiBo selectById(int id);
    //查询某个用户发表了多少篇博客
    public int selectWbCount(int userId);
    //查找某个博主发表的所有博客
    public List<WeiBo> selectByUser(int userId);
}
